import http from '@/utils/request'

/**
 * @description 获取商品列表
 * @param {*} param0 分页获取商品信息的参数
 * @returns Promise
 */
export const reqGoodsList = ({ page, limit, ...queryParams }) => {
  return http.get(`/goods/list/${page}/${limit}`, queryParams)
}

/**
 * @description 商品详情
 * @param {*} goodsId 商品id
 * @returns Promise
 */
export const reqGoodsInfo = (goodsId) => {
  return http.get(`/goods/${goodsId}`)
}
